{% extends 'AcmeFileManagerBundle:FileManager:index.html.twig' %}

{% block content %}
<ul id="list">
	{% if path.getPath() != "" %}<li class="odd"><a href="../" class="directory">..</a></li>{% endif %}
	
	{% for file in files %}
	<li class="{% if loop.index % 2 == 0 %}odd{% else %}even{% endif %}">
		<a href="{{ file.slug }}" class="{{ file.type }}">{{ file.name }}</a>
		
		<ul class="file-actions">
			<li>{{ file.permissions }}</li>
			<li><a href="/delete{{ file.slug }}?token={{ CSRFToken }}" title="Удалить" class="delete">Удалить</a></li>
		</ul>
	</li>
	{% endfor %}
</ul>
{% endblock %}